<?php
declare (strict_types=1);

namespace app\api\validate\passport;

use think\Validate;

/**
 * 验证类：密码
 * Class LoginPassword
 * @package app\api\validate\passport
 */
class LoginPassword extends Validate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        // 密码
        'password' => ['require','min:6']
    ];

    /**
     * 验证提示
     * @var string[]
     */
    protected $message  =   [
        'password.require' => '密码不能为空',
        'password.min' => '密码长度不能低于6位'
    ];
}